
lis = []
with open("x", 'r') as f:
    for line in f:
        key, _, value = tuple(line.split(" "))
        # dic[key] = float(value)
        lis.append((key, float(value)))

lis = sorted(lis, key=lambda x: x[1], reverse=True)
for key, value in lis:
    print(key, value)
